package com.cj.smart_bike.http

//接受数据的基类
data class ResponseData<out T>(
    val code: Int,
    val msg: String,
    val data: T,
)

data class Status(
    val status: Int,
    val deviceId: String
)

//"openId":xxx,//用户id
//"rotatingSpeed":xxx,double类型转速
// "mode":xxx, 模式0 体验模式  模式1 单人模式 模式2 双人模式  模式3 情侣模式
// "status":"", //模式0 游戏开始 模式1 游戏中   模式2 游戏结束  激活设备管道  3
//  "deviceId":"",设备编码
data class Model(
    val openId: String,
    val rotatingSpeed: String,
    val mode: Int,
    val status: Int,
    val deviceId: String
)

data class GameOver(
    val mode: String,
    val averageSpeed: String,
    val calories: String,
    val movementTimePeriod: String,
    val averageRotatingSpeed: String,
    val openId: String,
    val deviceId: String,
    val status: String,
    val type: String
)

data class Gaming(
    val deviceId: String,
    val mode: String,
    val status: Int,
    val openId: String
)

data class BeforeGame(
    val rotatingSpeed: Int,
    val deviceId: String,
    val status: Int,
    val isFlag: Int//0 是假转速 1真
)

data class GameSpeed(
    val rotatingSpeed: Int,
    val deviceId: String,
    val status: Int,
    val model: Int
)
